<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="/include/head.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户分配角色</title>
<script type="text/javascript">


</script>
</head>
<body>


<div class="pageContent">
    <form class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);" action="sys/user/assign.do" method="post" novalidate="novalidate">
       <input type="hidden" name="id" value="${object.id }"/>
       <div layoutH="116" id="w_list_print">
			<table class="table" width="98%" targetType="navTab" asc="asc" desc="desc">
				<thead>
					<tr>
					    <th><input type="checkbox" group="ids" class="checkboxCtrl"></th>
						<th>角色名称</th>
						<th>描述</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${allRoles}" var="item">
						<tr target="sid_${entity }" rel="${item.id}">
						    <c:choose >
						       <c:when test="${item.enable==1 }">
						           <td><input name="ids" value="${item.id}" type="checkbox" checked="checked"></td>
						           <td><span style="color:blue">${item.roleName}</span></td>					
								   <td><span style="color:blue">${item.description}</span></td>	
						       </c:when>
						       <c:otherwise>
						            <td><input name="ids" value="${item.id}" type="checkbox"></td>
						            <td>${item.roleName}</td>					
							        <td>${item.description}</td>	
						       </c:otherwise>
						    </c:choose>
						</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>
	    <div class="formBar">
	              <ul>
	                  <li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存 </button></div></div></li>
	                  <li> <div class="button"><div class="buttonContent"><button class="close" type="button">取消</button></div></div></li>
	              </ul>
	     </div>
     </form>
</div>

</body>
</html>